
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>准备 · 博客API</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="yaohw">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="config.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    安装
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.1" data-path="prepare.html">
            
                <a href="prepare.html">
            
                    
                    准备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="config.html">
            
                <a href="config.html">
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="run.html">
            
                <a href="run.html">
            
                    
                    运行
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../api/">
            
                <a href="../api/">
            
                    
                    接口文档
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../api/sms.html">
            
                <a href="../api/sms.html">
            
                    
                    发送验证码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../api/client/">
            
                <a href="../api/client/">
            
                    
                    客户端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="../api/client/save.html">
            
                <a href="../api/client/save.html">
            
                    
                    保存客户端
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="../api/client/page.html">
            
                <a href="../api/client/page.html">
            
                    
                    分页获取客户端
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.3" data-path="../api/client/delete.html">
            
                <a href="../api/client/delete.html">
            
                    
                    删除客户端
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../api/auth/">
            
                <a href="../api/auth/">
            
                    
                    认证
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" data-path="../api/auth/account.html">
            
                <a href="../api/auth/account.html">
            
                    
                    账号密码登录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" data-path="../api/auth/mobile.html">
            
                <a href="../api/auth/mobile.html">
            
                    
                    手机号验证码登录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.3" data-path="../api/auth/third.html">
            
                <a href="../api/auth/third.html">
            
                    
                    第三方登录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.4" data-path="../api/auth/refresh.html">
            
                <a href="../api/auth/refresh.html">
            
                    
                    刷新access_token
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.5" data-path="../api/auth/logout.html">
            
                <a href="../api/auth/logout.html">
            
                    
                    退出
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../api/user/">
            
                <a href="../api/user/">
            
                    
                    用户
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.1" data-path="../api/user/info.html">
            
                <a href="../api/user/info.html">
            
                    
                    获取用户信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2" data-path="../api/user/register.html">
            
                <a href="../api/user/register.html">
            
                    
                    注册
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.3" data-path="../api/user/pwd-update.html">
            
                <a href="../api/user/pwd-update.html">
            
                    
                    修改密码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.4" data-path="../api/user/pwd-reset.html">
            
                <a href="../api/user/pwd-reset.html">
            
                    
                    重置密码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.5" data-path="../api/user/avatar-update.html">
            
                <a href="../api/user/avatar-update.html">
            
                    
                    更换头像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.6" data-path="../api/user/update.html">
            
                <a href="../api/user/update.html">
            
                    
                    更新用户信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.7" data-path="../api/user/vemail.html">
            
                <a href="../api/user/vemail.html">
            
                    
                    邮箱验证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.8" data-path="../api/user/bemail.html">
            
                <a href="../api/user/bemail.html">
            
                    
                    邮箱绑定
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.9" data-path="../api/user/vmobile.html">
            
                <a href="../api/user/vmobile.html">
            
                    
                    验证原手机号
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.10" data-path="../api/user/bmobile.html">
            
                <a href="../api/user/bmobile.html">
            
                    
                    更换手机号
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.11" data-path="../api/user/page.html">
            
                <a href="../api/user/page.html">
            
                    
                    分页获取用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.12" data-path="../api/user/status-update.html">
            
                <a href="../api/user/status-update.html">
            
                    
                    用户状态修改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.13" data-path="../api/user/nmobile.html">
            
                <a href="../api/user/nmobile.html">
            
                    
                    绑定手机号
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.14" data-path="../api/user/username.html">
            
                <a href="../api/user/username.html">
            
                    
                    绑定用户名
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../api/tag/">
            
                <a href="../api/tag/">
            
                    
                    标签
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.1" data-path="../api/tag/add.html">
            
                <a href="../api/tag/add.html">
            
                    
                    新增标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.2" data-path="../api/tag/page.html">
            
                <a href="../api/tag/page.html">
            
                    
                    分页获取标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.3" data-path="../api/tag/list.html">
            
                <a href="../api/tag/list.html">
            
                    
                    获取标签列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.4" data-path="../api/tag/update.html">
            
                <a href="../api/tag/update.html">
            
                    
                    修改标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.5" data-path="../api/tag/delete.html">
            
                <a href="../api/tag/delete.html">
            
                    
                    删除标签
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../api/category/">
            
                <a href="../api/category/">
            
                    
                    分类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.6.1" data-path="../api/category/add.html">
            
                <a href="../api/category/add.html">
            
                    
                    新增分类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.2" data-path="../api/category/page.html">
            
                <a href="../api/category/page.html">
            
                    
                    分页获取分类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.3" data-path="../api/category/list.html">
            
                <a href="../api/category/list.html">
            
                    
                    获取分类列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.4" data-path="../api/category/tree.html">
            
                <a href="../api/category/tree.html">
            
                    
                    获取分类树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.5" data-path="../api/category/update.html">
            
                <a href="../api/category/update.html">
            
                    
                    修改分类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.6" data-path="../api/category/delete.html">
            
                <a href="../api/category/delete.html">
            
                    
                    删除分类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../api/file/">
            
                <a href="../api/file/">
            
                    
                    文件存储
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.7.1" data-path="../api/file/upload.html">
            
                <a href="../api/file/upload.html">
            
                    
                    上传文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7.2" data-path="../api/file/delete.html">
            
                <a href="../api/file/delete.html">
            
                    
                    删除文件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../api/article/">
            
                <a href="../api/article/">
            
                    
                    文章
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.8.1" data-path="../api/article/save.html">
            
                <a href="../api/article/save.html">
            
                    
                    保存文章
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.2" data-path="../api/article/page.html">
            
                <a href="../api/article/page.html">
            
                    
                    分页获取文章（后台）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.3" data-path="../api/article/detail.html">
            
                <a href="../api/article/detail.html">
            
                    
                    文章详情（后台）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.4" data-path="../api/article/f_page.html">
            
                <a href="../api/article/f_page.html">
            
                    
                    分页获取文章（前台）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.5" data-path="../api/article/view.html">
            
                <a href="../api/article/view.html">
            
                    
                    文章详情（前台）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.6" data-path="../api/article/incrt_view.html">
            
                <a href="../api/article/incrt_view.html">
            
                    
                    文章浏览数自增
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.7" data-path="../api/article/interrelated.html">
            
                <a href="../api/article/interrelated.html">
            
                    
                    相关文章
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.8" data-path="../api/article/discard.html">
            
                <a href="../api/article/discard.html">
            
                    
                    丢弃文章
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.9" data-path="../api/article/delete.html">
            
                <a href="../api/article/delete.html">
            
                    
                    删除文章
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.10" data-path="../api/article/status.html">
            
                <a href="../api/article/status.html">
            
                    
                    修改文章状态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.11" data-path="../api/article/archives.html">
            
                <a href="../api/article/archives.html">
            
                    
                    文章归档
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.12" data-path="../api/article/tag_statistic.html">
            
                <a href="../api/article/tag_statistic.html">
            
                    
                    标签文章统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.13" data-path="../api/article/c_statistic.html">
            
                <a href="../api/article/c_statistic.html">
            
                    
                    分类文章统计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../api/recommend/">
            
                <a href="../api/recommend/">
            
                    
                    文章推荐
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.9.1" data-path="../api/recommend/save.html">
            
                <a href="../api/recommend/save.html">
            
                    
                    保存到推荐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9.2" data-path="../api/recommend/delete.html">
            
                <a href="../api/recommend/delete.html">
            
                    
                    删除推荐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9.3" data-path="../api/recommend/list.html">
            
                <a href="../api/recommend/list.html">
            
                    
                    获取推荐列表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../api/like/">
            
                <a href="../api/like/">
            
                    
                    文章点赞
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.10.1" data-path="../api/like/add.html">
            
                <a href="../api/like/add.html">
            
                    
                    新增点赞
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10.2" data-path="../api/like/cancel.html">
            
                <a href="../api/like/cancel.html">
            
                    
                    取消点赞
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10.3" data-path="../api/like/if.html">
            
                <a href="../api/like/if.html">
            
                    
                    是否已点赞
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="../api/comment/">
            
                <a href="../api/comment/">
            
                    
                    文章评论与回复
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.11.1" data-path="../api/comment/c_add.html">
            
                <a href="../api/comment/c_add.html">
            
                    
                    新增评论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11.2" data-path="../api/comment/c_delete.html">
            
                <a href="../api/comment/c_delete.html">
            
                    
                    删除评论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11.3" data-path="../api/comment/r_add.html">
            
                <a href="../api/comment/r_add.html">
            
                    
                    新增评论回复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11.4" data-path="../api/comment/r_delete.html">
            
                <a href="../api/comment/r_delete.html">
            
                    
                    删除评论回复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11.5" data-path="../api/comment/page.html">
            
                <a href="../api/comment/page.html">
            
                    
                    分页获取评论与回复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11.6" data-path="../api/comment/latest.html">
            
                <a href="../api/comment/latest.html">
            
                    
                    最新评论列表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="../api/collect/">
            
                <a href="../api/collect/">
            
                    
                    文章收藏
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.12.1" data-path="../api/collect/add.html">
            
                <a href="../api/collect/add.html">
            
                    
                    新增收藏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12.2" data-path="../api/collect/page.html">
            
                <a href="../api/collect/page.html">
            
                    
                    分页获取收藏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12.3" data-path="../api/collect/delete.html">
            
                <a href="../api/collect/delete.html">
            
                    
                    删除收藏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12.4" data-path="../api/collect/if.html">
            
                <a href="../api/collect/if.html">
            
                    
                    是否已收藏
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.13" data-path="../api/message/">
            
                <a href="../api/message/">
            
                    
                    留言与回复
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.13.1" data-path="../api/message/add.html">
            
                <a href="../api/message/add.html">
            
                    
                    新增留言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13.2" data-path="../api/message/r_add.html">
            
                <a href="../api/message/r_add.html">
            
                    
                    新增留言回复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13.3" data-path="../api/message/page.html">
            
                <a href="../api/message/page.html">
            
                    
                    分页回复留言与回复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13.4" data-path="../api/message/latest.html">
            
                <a href="../api/message/latest.html">
            
                    
                    最新留言列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13.5" data-path="../api/message/delete.html">
            
                <a href="../api/message/delete.html">
            
                    
                    删除留言或回复
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.14" data-path="../api/friend/">
            
                <a href="../api/friend/">
            
                    
                    友链
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.14.1" data-path="../api/friend/save.html">
            
                <a href="../api/friend/save.html">
            
                    
                    保存友链
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14.2" data-path="../api/friend/page.html">
            
                <a href="../api/friend/page.html">
            
                    
                    分页获取友链
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14.3" data-path="../api/friend/list.html">
            
                <a href="../api/friend/list.html">
            
                    
                    友链列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14.4" data-path="../api/friend/delete.html">
            
                <a href="../api/friend/delete.html">
            
                    
                    删除友链
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../help/">
            
                <a href="../help/">
            
                    
                    帮助与反馈
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <!--<li>-->
        <!--<a href="https://www.gitbook.com" target="blank" class="gitbook-link">-->
            <!--本书使用 GitBook 发布-->
        <!--</a>-->
    <!--</li>-->
</ul>

                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >准备</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x51C6;&#x5907;">&#x51C6;&#x5907;</h1>
<h2 id="redis&#x5B89;&#x88C5;">redis&#x5B89;&#x88C5;</h2>
<p>&#x9879;&#x76EE;&#x8FD0;&#x884C;&#x4F9D;&#x8D56;&#x4E8E;redis&#x670D;&#x52A1;&#xFF0C;&#x4E0D;&#x4E86;&#x89E3;redis&#x7684;&#x4F19;&#x4F34;&#x53EF;&#x4EE5;&#x81EA;&#x884C;&#x67E5;&#x9605;&#x4E00;&#x7FFB;&#xFF0C;&#x7F51;&#x4E0A;&#x7684;&#x5B89;&#x88C5;&#x6559;&#x7A0B;&#x4E5F;&#x5F88;&#x591A;&#xFF0C;&#x8FD9;&#x91CC;&#x53EA;&#x653E;&#x51FA;&#x4E86;&#x4E24;&#x4E2A;&#x4E0B;&#x8F7D;&#x94FE;&#x63A5;&#xFF0C;&#x5C31;&#x4E0D;&#x505A;&#x8BE6;&#x7EC6;&#x4ECB;&#x7ECD;&#x4E86;&#x3002;
<br>
Window&#x7248;&#x4E0B;&#x8F7D;&#x5730;&#x5740;: <a href="https://github.com/microsoftarchive/redis/releases" target="_blank">https://github.com/microsoftarchive/redis/releases</a>
<br>
Linux&#x7248;&#x4E0B;&#x8F7D;&#x5730;&#x5740;:<a href="https://redis.io/download" target="_blank">https://redis.io/download</a>
<br>
&#x8FD9;&#x91CC;&#x7A0D;&#x5FAE;&#x8BB2;&#x4E0B;redis&#x7684;&#x914D;&#x7F6E;&#x7684;&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x4E00;&#x4E2A;&#x5730;&#x65B9;&#xFF0C;&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;redis&#x7684;&#x8BBF;&#x95EE;&#x662F;&#x7ED1;&#x5B9A;&#x672C;&#x673A;&#x8BBF;&#x95EE;&#x7684;&#xFF0C;&#x5982;&#x9700;&#x8981;&#x5916;&#x7F51;&#x8BBF;&#x95EE;&#x9700;&#x8981;&#x4FEE;&#x6539;&#x4EE5;&#x4E0B;&#x4E09;&#x4E2A;&#x914D;&#x7F6E;:</p>
<pre><code># &#x914D;&#x7F6E;&#x5BC6;&#x7801;
requirepass &#x4F60;&#x7684;&#x5BC6;&#x7801;
# &#x7ED1;&#x5B9A;&#x7684;ip
bind 0.0.0.0
# &#x4FDD;&#x62A4;&#x6A21;&#x5F0F;
protected-mode no
</code></pre><h2 id="mysql&#x5B89;&#x88C5;">mysql&#x5B89;&#x88C5;</h2>
<p>&#x9879;&#x76EE;&#x8FD0;&#x884C;&#x4F9D;&#x8D56;&#x4E8E;mysql&#x670D;&#x52A1;&#xFF0C;mysql&#x5B89;&#x88C5;&#x7BC7;&#x5E45;&#x7A0D;&#x957F;&#xFF0C;&#x7F51;&#x4E0A;&#x5B89;&#x88C5;&#x6559;&#x7A0B;&#x4E5F;&#x5F88;&#x591A;&#xFF0C;&#x8FD9;&#x91CC;&#x653E;&#x51FA;&#x4E00;&#x4E2A;&#x5B89;&#x88C5;&#x6559;&#x7A0B;&#x94FE;&#x63A5;&#x3002;
<a href="https://cloud.tencent.com/developer/article/1329000" target="_blank">Centos7 &#x5B89;&#x88C5; Mysql &#x6570;&#x636E;&#x5E93;</a>&#x3002;
&#x9700;&#x8981;&#x6CE8;&#x610F;&#x4E00;&#x70B9;&#xFF0C;&#x5B57;&#x7B26;&#x7F16;&#x7801;&#x6700;&#x597D;&#x6539;&#x4E3A;utf8mb4&#x800C;&#x4E0D;&#x662F;utf8&#xFF0C;&#x56E0;&#x4E3A;&#x8868;&#x60C5;&#x7B26;&#x7528;utf8&#x5B57;&#x7B26;&#x7F16;&#x7801;&#x5B58;&#x4E0D;&#x4E0B;,&#x5982;&#x82E5;&#x786E;&#x8BA4;&#x5B58;&#x50A8;&#x7684;&#x5185;&#x5BB9;&#x4E0D;&#x542B;&#x8868;&#x60C5;&#x7B26;&#x4E5F;&#x53EF;&#x4EE5;&#x914D;&#x7F6E;utf8&#x3002;
<br>
utf8mb4&#x5B57;&#x7B26;&#x7F16;&#x7801;&#x914D;&#x7F6E;&#x5982;&#x4E0B;:</p>
<pre><code>character_set_server=utf8mb4
init_connect=&apos;SET NAMES utf8mb4
</code></pre><p>&#x6B63;&#x786E;&#x5B89;&#x88C5;mysql&#x597D;&#x670D;&#x52A1;&#x540E;&#xFF0C;&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;&#x540D;&#x4E3A;blog_db&#x7684;&#x6570;&#x636E;&#x5E93;&#xFF0C;&#x5B57;&#x7B26;&#x7F16;&#x7801;&#x96C6;&#x9009;&#x62E9;utf8mb4&#xFF0C;&#x63A5;&#x7740;&#x521D;&#x59CB;&#x5316;&#x7CFB;&#x7EDF;&#x6570;&#x636E;&#x5373;&#x53EF;&#xFF08;sql&#x6587;&#x4EF6;&#x5728;&#x9879;&#x76EE;sql&#x6587;&#x4EF6;&#x5939;&#x4E0B;&#xFF09;&#x3002;</p>
<h2 id="&#x963F;&#x91CC;&#x4E91;&#x77ED;&#x4FE1;&#x670D;&#x52A1;&#x5F00;&#x901A;">&#x963F;&#x91CC;&#x4E91;&#x77ED;&#x4FE1;&#x670D;&#x52A1;&#x5F00;&#x901A;</h2>
<p>&#x9879;&#x76EE;&#x63A5;&#x5165;&#x963F;&#x91CC;&#x4E91;&#x77ED;&#x4FE1;&#x670D;&#x52A1;&#xFF0C;&#x7528;&#x4E8E;&#x77ED;&#x4FE1;&#x9A8C;&#x8BC1;&#x7801;&#x53D1;&#x9001;&#xFF0C;&#x9700;&#x8981;&#x4E2A;&#x4EBA;&#x53BB;<a href="https://www.aliyun.com/product/sms" target="_blank">&#x963F;&#x91CC;&#x4E91;&#x5E73;&#x53F0;</a>&#x5F00;&#x901A;&#x963F;&#x91CC;&#x4E91;&#x77ED;&#x4FE1;&#x670D;&#x52A1;&#x3002;
&#x77ED;&#x4FE1;&#x53D1;&#x9001;&#x9700;&#x8981;&#x5728;&#x963F;&#x91CC;&#x63A7;&#x5236;&#x53F0;&#x4E91;&#x77ED;&#x4FE1;&#x6A21;&#x5757;&#x4E2D;&#x914D;&#x7F6E;&#x4E24;&#x4E2A;&#x914D;&#x7F6E;&#xFF0C;&#x4E00;&#x4E2A;&#x662F;&#x7B7E;&#x540D;&#xFF0C;&#x6240;&#x8C13;&#x7B7E;&#x540D;&#x5C31;&#x662F;&#x53D1;&#x9001;&#x77ED;&#x4FE1;&#x65F6;&#x524D;&#x9762;[]&#x7684;&#x5185;&#x5BB9;&#xFF0C;
&#x5982;:[&#x963F;&#x91CC;&#x4E91;]&#x5C0A;&#x656C;&#x7684;&#x7528;&#x6237;&#xFF1A;&#x60A8;&#x7684;&#x6821;&#x9A8C;&#x7801;&#xFF0C;&#x7565;&#x3002;&#x8FD9;&#x91CC;&#x7684;<b>&#x963F;&#x91CC;&#x4E91;</b>&#x5C31;&#x662F;&#x7B7E;&#x540D;&#x3002;&#x8FD8;&#x6709;&#x4E00;&#x4E2A;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x7684;&#x5C31;&#x662F;&#x77ED;&#x4FE1;&#x6A21;&#x677F;&#xFF0C;&#x8FD9;&#x4E2A;&#x4E5F;&#x5F88;&#x597D;&#x7406;&#x89E3;&#xFF0C;&#x8FD9;&#x4E2A;&#x6A21;&#x677F;&#x52A0;&#x4E0A;&#x53C2;&#x6570;&#x5C31;&#x662F;&#x5B8C;&#x6574;&#x7684;&#x77ED;&#x4FE1;&#x5185;&#x5BB9;&#x3002;
<br>
&#x6A21;&#x677F;&#x6817;&#x5B50;&#xFF1A;
<br>
<a href="http://qiniu.poile.cn/sms.png" data-lightbox="7239a408-bf39-4dd6-a174-bf27630f6ece" data-title="&#x56FE;&#x7247;" target="_blank"><img src="http://qiniu.poile.cn/sms.png" alt="&#x56FE;&#x7247;"></a></p>
<blockquote>
<p>[!TIP]
&#x5F71;&#x54CD;&#x77ED;&#x9A8C;&#x8BC1;&#x7801;&#x63A5;&#x53E3;&#xFF0C;&#x4E0D;&#x5F71;&#x54CD;&#x9879;&#x76EE;&#x542F;&#x52A8;&#x3002;</p>
</blockquote>
<h2 id="&#x4E91;&#x5B58;&#x50A8;">&#x4E91;&#x5B58;&#x50A8;</h2>
<p>&#x8FD9;&#x90E8;&#x5206;&#x4E3A;&#x975E;&#x5FC5;&#x987B;&#xFF0C;&#x5982;&#x8D2D;&#x4E70;&#x7684;&#x670D;&#x52A1;&#x5668;&#x4E0D;&#x5B58;&#x5728;&#x5E26;&#x5BBD;&#x538B;&#x529B;&#x53EF;&#x4EE5;&#x5FFD;&#x7565;&#x6B64;&#x90E8;&#x5206;&#x3002;
<br>
&#x5173;&#x4E8E;&#x4E91;&#x5B58;&#x50A8;&#xFF0C;&#x9879;&#x76EE;&#x4F9B;<a href="https://www.aliyun.com/product/oss" target="_blank">&#x963F;&#x91CC;&#x4E91;</a>&#x3001;<a href="https://www.163yun.com/product/nos?entry=dh01040203" target="_blank">&#x7F51;&#x6613;&#x4E91;</a>&#x3001;<a href="https://www.qiniu.com/products/kodo" target="_blank">&#x4E03;&#x725B;&#x4E91;</a>&#x4E09;&#x79CD;&#x9009;&#x62E9;&#x3002;&#x81F3;&#x4E8E;&#x7528;&#x54EA;&#x79CD;&#x770B;&#x4E2A;&#x4EBA;&#x9009;&#x62E9;&#xFF0C;&#x8FD9;&#x91CC;&#x7B80;&#x5355;&#x8BF4;&#x4E0B;&#x672C;&#x4EBA;&#x4E86;&#x89E3;&#x5230;&#x7684;&#x4E00;&#x4E9B;&#x4FE1;&#x606F;&#x3002;
<br></p>
<ul>
<li>&#x4E03;&#x725B;&#x4E91;&#x4E2A;&#x4EBA;&#x8BA4;&#x8BC1;&#x540E;&#x6709;10G&#x7684;&#x514D;&#x8D39;&#x5B58;&#x50A8;&#x7A7A;&#x95F4;&#xFF0C;&#x4F46;&#x9700;&#x5177;&#x5907;&#x4E00;&#x4E2A;&#x5DF2;&#x5907;&#x6848;&#x7684;&#x57DF;&#x540D;&#xFF0C;&#x7136;&#x540E;&#x65B0;&#x589E;&#x4E00;&#x4E2A;&#x8BB0;&#x5F55;&#x7C7B;&#x578B;&#x4E3A;CNAME&#x7684;&#x57DF;&#x540D;&#x89E3;&#x6790;&#x3002;&#x8FD8;&#x6709;&#x4E00;&#x70B9;&#xFF0C;&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#x4E3A;http&#x534F;&#x8BAE;&#xFF0C;&#x5982;&#x9700;https&#x9700;&#x652F;&#x4ED8;&#x989D;&#x5916;&#x7684;&#x8D39;&#x7528;&#x3002;
<br></li>
<li>&#x7F51;&#x6613;&#x4E91;&#x4E4B;&#x524D;&#x4E2A;&#x4EBA;&#x8BA4;&#x8BC1;&#x540E;&#x6709;50G&#x7684;&#x514D;&#x8D39;&#x5B58;&#x50A8;&#x7A7A;&#x95F4;&#xFF0C;&#x9057;&#x61BE;&#x7684;&#x662F;&#x76EE;&#x524D;&#x8C8C;&#x4F3C;&#x8981;&#x6C42;&#x5347;&#x7EA7;&#x81F3;&#x4F01;&#x4E1A;&#x7EA7;&#x8BA4;&#x8BC1;&#x65B9;&#x53EF;&#x4EAB;&#x6709;50G&#x7684;&#x514D;&#x8D39;&#x5B58;&#x50A8;&#x7A7A;&#x95F4;&#x3002;
<br></li>
<li>&#x963F;&#x91CC;&#x4E91;40G&#x5B58;&#x50A8;&#x7A7A;&#x95F4;&#x7684;&#x4E00;&#x4E2A;&#x6708;1.00&#xFFE5;&#xFF0C;&#x4E70;&#x7684;&#x65F6;&#x957F;&#x8D8A;&#x957F;&#x4EF7;&#x683C;&#x8D8A;&#x4F18;&#x60E0;&#x3002;
<br></li>
</ul>
<h2 id="&#x7CFB;&#x7EDF;&#x90AE;&#x7BB1;">&#x7CFB;&#x7EDF;&#x90AE;&#x7BB1;</h2>
<p>&#x9879;&#x76EE;&#x63A5;&#x5165;&#x90AE;&#x7BB1;&#x670D;&#x52A1;&#xFF0C;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x7CFB;&#x7EDF;&#x90AE;&#x7BB1;&#xFF0C;&#x7528;&#x4E8E;&#x53D1;&#x9001;&#x7CFB;&#x7EDF;&#x90AE;&#x4EF6;&#x3002;</p>
<blockquote>
<p>[!TIP]
&#x5F71;&#x54CD;&#x90E8;&#x5206;&#x529F;&#x80FD;&#xFF0C;&#x4E0D;&#x5F71;&#x54CD;&#x9879;&#x76EE;&#x542F;&#x52A8;&#x3002;</p>
</blockquote>
<h2 id="java&#x73AF;&#x5883;">java&#x73AF;&#x5883;</h2>
<p>&#x9879;&#x76EE;&#x4F7F;&#x7528;java&#x8BED;&#x8A00;&#x7F16;&#x5199;&#xFF0C;&#x56E0;&#x6B64;&#xFF0C;&#x9700;&#x8981;&#x914D;&#x7F6E;java&#x73AF;&#x5883;&#x3002;java&#x73AF;&#x5883;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x548C;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x90FD;&#x662F;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x7684;&#x3002;&#x7F51;&#x4E0A;java&#x73AF;&#x5883;&#x5B89;&#x88C5;&#x914D;&#x7F6E;&#x7684;&#x6559;&#x7A0B;&#x5F88;&#x591A;&#xFF0C;&#x8FD9;&#x91CC;&#x4E0D;&#x505A;&#x8BE6;&#x7EC6;&#x4ECB;&#x7ECD;&#xFF0C;
jdk&#x7248;&#x672C;&#x4E0D;&#x4F4E;&#x4E8E;1.8&#x5373;&#x53EF;&#x3002;</p>
<h2 id="maven&#x73AF;&#x5883;">maven&#x73AF;&#x5883;</h2>
<p>maven&#x662F;&#x7528;&#x6765;&#x4E0B;&#x8F7D;&#x548C;&#x5B89;&#x88C5;&#x4F9D;&#x8D56;&#x3001;&#x6253;&#x5305;&#xFF0C;&#x7C7B;&#x4F3C;npm&#x7684;&#x4E00;&#x4E2A;&#x4E1C;&#x897F;&#x3002;&#x5728;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x5B89;&#x88C5;&#x914D;&#x7F6E;maven&#x73AF;&#x5883;&#x3002;&#x7F51;&#x4E0A;maven&#x73AF;&#x5883;&#x5B89;&#x88C5;&#x914D;&#x7F6E;&#x7684;&#x6559;&#x7A0B;&#x5F88;&#x591A;&#xFF0C;&#x8FD9;&#x91CC;&#x4E5F;&#x4E0D;&#x505A;&#x8BE6;&#x7EC6;&#x4ECB;&#x7ECD;&#xFF0C;
maven&#x7248;&#x672C;&#x4E0D;&#x4F4E;&#x4E8E;3.5&#x5373;&#x53EF;&#x3002;</p>
<blockquote>
<p>[!TIP]
&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x53EF;&#x4EE5;&#x4E0D;&#x7528;&#x914D;&#x7F6E;maven&#xFF0C;&#x4F7F;&#x7528;mavne&#x5C06;&#x9879;&#x76EE;&#x6253;&#x5305;&#x6210;jar&#x540E;&#x53EA;&#x9700;java&#x73AF;&#x5883;&#x5373;&#x53EF;&#x8FD0;&#x884C;&#x3002;</p>
</blockquote>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 安装">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="config.html" class="navigation navigation-next " aria-label="Next page: 配置">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"准备","level":"1.2.1","depth":2,"next":{"title":"配置","level":"1.2.2","depth":2,"path":"install/config.md","ref":"install/config.md","articles":[]},"previous":{"title":"安装","level":"1.2","depth":1,"path":"install/index.md","ref":"install/index.md","articles":[{"title":"准备","level":"1.2.1","depth":2,"path":"install/prepare.md","ref":"install/prepare.md","articles":[]},{"title":"配置","level":"1.2.2","depth":2,"path":"install/config.md","ref":"install/config.md","articles":[]},{"title":"运行","level":"1.2.3","depth":2,"path":"install/run.md","ref":"install/run.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["github","-sharing","splitter","expandable-chapters-small","code","flexible-alerts","lightbox"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/copoile/blog-api.git"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"lightbox":{"jquery":true,"sameUuid":false},"expandable-chapters-small":{},"flexible-alerts":{"danger":{"className":"danger","icon":"fa fa-ban","label":"Attention"},"note":{"className":"info","icon":"fa fa-info-circle","label":"Note"},"style":"callout","tip":{"className":"tip","icon":"fa fa-lightbulb-o","label":"Tip"},"warning":{"className":"warning","icon":"fa fa-exclamation-triangle","label":"Warning"}},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"yaohw","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"INTRODUCE.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"博客API","language":"zh-hans","gitbook":"*","description":"介绍博客API系统及接口API详细介绍。"},"file":{"path":"install/prepare.md","mtime":"2020-01-03T15:22:35.875Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-06-16T05:56:45.485Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

